﻿<%@ Page Language="VB" AutoEventWireup="false" CodeFile="frmPopUpBusquedaCentroCosto.aspx.vb" Inherits="Dialogos_frmPopUpBusquedaCentroCosto" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title>Búsqueda de Centro de Costo</title>
    <script language="JScript" type="text/jscript">
        window.name = "modal";
        var opener = window.dialogArguments;

        function DevolverValores(CentroCosto, Descripcion) {
            opener.SetearCentroCosto(CentroCosto, Descripcion);
            window.close();
        }
    </script>
      <link href="../Estilos/Estilo.css" rel="stylesheet" type="text/css" />
      <script language="javascript" type="text/javascript" src="../Scripts/JSEventHandlers.js"></script>
      <script language="javascript" type="text/javascript" src="../Scripts/JSUtilitarios.js"></script>
      <script language="javascript" type="text/javascript" src="../Scripts/CalendarPopup.js"></script>

</head>
<body>
    <form id="form1" method="post" runat="server">
			<table class="secciones" id="tblarticulos" cellspacing="1" cellpadding="1" width="500"
				align="center" border="0">
				<tr>
					<td class="celdasespeciales" colspan="5"><asp:label id="lblcentrocosto" 
                            runat="server" cssclass="Titulos">.:: Centro de Costo ::.</asp:label></td>
				</tr>
				<tr>
					<td style="height: 20px" width="100"><asp:label id="lblcodigo" runat="server" cssclass="Etiquetas" width="100px"> Centro de Costo:</asp:label></td>
					<td width="80"><asp:textbox id="txtcentrocosto" runat="server" 
                            cssclass="CajasTexto" width="80px" maxlength="25"></asp:textbox></td>
					<td style="height: 20px" width="80"><asp:label id="lbldescripcion" runat="server" cssclass="Etiquetas">Descripción:</asp:label></td>
					<td style="height: 20px" width="160"><asp:textbox id="txtdescripcion" 
                            runat="server" cssclass="CajasTexto" width="160px" maxlength="40"></asp:textbox></td>
					<td style="height: 20px" width="80"><asp:button id="btnbuscar" runat="server" 
                            cssclass="Botones" width="80px" text="[buscar]"></asp:button></td>
				</tr>
				<tr>
					<td align="center" colspan="5"><asp:datagrid id="grdcentrocosto" runat="server" width="489px" allowpaging="true" font-names="verdana"
							font-size="11px" bordercolor="#e7e7ff" borderstyle="none" borderwidth="1px" backcolor="white" cellpadding="3" gridlines="horizontal"
							autogeneratecolumns="false" allowsorting="true">
							<selecteditemstyle font-bold="true" forecolor="#f7f7f7" backcolor="lightslategray"></selecteditemstyle>
							<alternatingitemstyle backcolor="aliceblue"></alternatingitemstyle>
							<itemstyle forecolor="#4a3c8c" backcolor="white"></itemstyle>
							<headerstyle cssclass="grilla_header"></headerstyle>
							<footerstyle forecolor="#4a3c8c" backcolor="#b5c7de"></footerstyle>
							<columns>
								<asp:templatecolumn headertext="Centro de Costo">
									<itemtemplate>
										<asp:hyperlink id="hyperlink1" runat="server" navigateurl='<%#fncrearcadenadevolucion(databinder.eval(container.dataitem, "centro_costo"), databinder.eval(container.dataitem, "descripcion"))%>'>
											<%# databinder.eval(container, "dataitem.centro_costo") %>
										</asp:hyperlink>
									</itemtemplate>
									<edititemtemplate>
										<asp:textbox id="textbox1" runat="server" text='<%# databinder.eval(container, "dataitem.articulo") %>'>
										</asp:textbox>
									</edititemtemplate>
								</asp:templatecolumn>
								<asp:boundcolumn datafield="descripcion" sortexpression="descripcion" headertext="Descripci&#243;n"></asp:boundcolumn>
							</columns>
							<pagerstyle horizontalalign="right" forecolor="#4a3c8c" backcolor="#e7e7ff" pagebuttoncount="15"
								mode="numericpages"></pagerstyle>
						</asp:datagrid></td>
				</tr>
				<tr>
					<td align="center" colspan="5"><asp:label id="lblmensaje" runat="server" cssclass="Mensaje"></asp:label></td>
				</tr>
				<tr>
					<td colspan="5"><input class="cajastexto" id="hidcompania" type="hidden" size="1" name="hidcompania" runat="server"/><input class="cajastexto" id="hidusuario" type="hidden" size="1" name="hidcompania" runat="server"/></td>
				</tr>
			</table>
		</form>
</body>
</html>
